package wymiana.dao; 

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import wymiana.domain.Department;

/** 
 * 
 * @author Rafal Magdon
 * @version 1.0 
 * 
 * Description: 
 * 
 */
@Repository
public class DepartmentDao extends GenericDao<Department> {
	@Autowired
	public DepartmentDao(SessionFactory sf) {
		super(Department.class, sf);
	}

	public Department getDepartmentById(Integer id) {
		Department department = (Department) getById(id);
		// TODO inicjalizacja
		return department;
	}
}
